<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
}

input[type='number'] {
  -moz-appearance: textfield;
}
</style>
<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">


      <el-button type="primary" @click="abc(0)">待入职{{ statisticsNum.count0 }}人</el-button>&nbsp;&nbsp;&nbsp;
      <el-button plain @click="abc(1)">已入职{{ statisticsNum.count1 }}人</el-button>&nbsp;&nbsp;&nbsp;
    <!--  <el-button plain plain @click="abc(2)">RPO{{ statisticsNum.count3 }}人</el-button>&nbsp;&nbsp;&nbsp;-->
      <el-button plain @click="abc(3)">放弃入职{{ statisticsNum.count2 }}人</el-button>&nbsp;&nbsp;&nbsp;
      <el-form-item prop="resumeName">
        <el-input
          v-model="queryParams.all"
          placeholder="请输入"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
        <el-button size="mini" type="success" @click="addEmp">添加员工</el-button>
      </el-form-item>
    </el-form>


    <el-drawer
      title="添加员工"
      :before-close="handleClose"
      :visible.sync="empDrawer"
      direction="rtl"
      custom-class="demo-drawer"
      size="50%"
      ref="drawer"
    >
      <div class="demo-drawer__content">
        <el-form ref="empDraForm" :model="empDraForm" :rules="empDraRules" label-width="120px">
          <el-tag type="success">岗位信息</el-tag>
          <el-row :gutter="24">
            <el-form-item label="选择入职岗位">
              <el-button size="mini" @click="changeStation">选择岗位</el-button>
              <span style="color: #673ab7" v-if="empDraForm.stationId !== undefined">&nbsp;&nbsp; {{empDraForm.stationName}}</span>
              <span style="color: blue" v-if="empDraForm.stationId === undefined"> &nbsp;&nbsp;（未选择岗位）</span>
            </el-form-item>
            <el-dialog :append-to-body="true" title="选择岗位" :visible.sync="statainTable">
              <el-table :data="stationList">
                <el-table-column algin="center" type="index" label="序号" width="50"></el-table-column>
                <el-table-column algin="center" :show-overflow-tooltip="true" property="stationName" label="岗位名称" ></el-table-column>
                <el-table-column algin="center" property="stationCategory" label="岗位类型"></el-table-column>
                <el-table-column algin="center" property="jobGrade" label="岗位等级" ></el-table-column>
                <!--<el-table-column algin="center" :show-overflow-tooltip="true" property="companyName" label="企业名称" ></el-table-column>
                <el-table-column algin="center" property="proName" label="项目组" ></el-table-column>-->
                <el-table-column algin="center" property="createdBy" label="负责商务" ></el-table-column>
                <el-table-column algin="center" width="100"  property="wokeEndTime" label="招聘截至" >
                  <template slot-scope="scope">
                    {{ parseTime(scope.row.wokeEndTime, '{y}-{m}-{d}') }}
                  </template>
                </el-table-column>
                <el-table-column algin="center" width="100"  property="createTime" label="创建时间" >
                  <template slot-scope="scope">
                    {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
                  </template>
                </el-table-column>
                <el-table-column fixed="right" algin="center" width="100"  label="操作" >
                  <template slot-scope="scope">
                    <el-button type="text" @click="selectStation(scope.row)">选择</el-button>
                  </template>
                </el-table-column>
              </el-table>
              <pagination
                v-show="stationTotal>0"
                :total="stationTotal"
                :page.sync="queryStationParams.pageNum"
                :limit.sync="queryStationParams.pageSize"
                @pagination="changeStation"
              />
            </el-dialog>
          </el-row>
          <el-tag type="success">入职信息</el-tag>
          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="入职日期" prop="employmentDate">
                <el-date-picker clearable
                                style="width: 100%"
                                v-model="empDraForm.employmentDate"
                                type="date"
                                placeholder="请选择入职日期">
                </el-date-picker>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="试用期" prop="probationPeriod">
                <el-select v-model="empDraForm.probationPeriod" placeholder="请选择" style="width: 100%">
                  <el-option label="请选择" value=""></el-option>
                  <el-option label="1个月" value="1个月"></el-option>
                  <el-option label="2个月" value="2个月"></el-option>
                  <el-option label="3个月" value="3个月"></el-option>
                  <el-option label="4个月" value="4个月"></el-option>
                  <el-option label="5个月" value="5个月"></el-option>
                  <el-option label="6个月" value="6个月"></el-option>
                </el-select>
              </el-form-item>

            </el-col>
          </el-row>


          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="岗位" prop="positionApplied">
                <el-input v-model="empDraForm.positionApplied" placeholder="请输入"/>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="职位" prop="title">
                <treeselect @input="parentIdChangeEmp" v-model="empDraForm.title" :options="postOptions" :show-count="true"
                            placeholder="请选择职位"/>
              </el-form-item>
            </el-col>
          </el-row>


          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="工作性质" prop="workNature">
                <el-select v-model="empDraForm.workNature" placeholder="请选择" style="width: 100%">
                  <el-option label="请选择" value=""></el-option>
                  <el-option label="劳务外派" value="劳务外派"></el-option>
                  <el-option label="全职" value="全职"></el-option>
                  <el-option label="兼职" value="兼职"></el-option>
                  <el-option label="外包" value="外包"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="员工状态" prop="status">
                <el-select v-model="empDraForm.status" placeholder="请选择" style="width: 100%">
                  <el-option label="请选择" value=""></el-option>
                  <el-option label="正式" value="4"></el-option>
                  <el-option label="试用" value="3"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>


          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="归属部门" prop="deptName">
                <treeselect @input="parentIdChangeEmp" v-model="empDraForm.deptName" :options="deptOptions"
                            :show-count="true"
                            placeholder="请选择归属部门"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-tag type="success">基本信息</el-tag>
          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="姓名" prop="name">
                <el-input v-model="empDraForm.name" placeholder="请输入"/>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="性别" prop="gender">
                <el-select v-model="empDraForm.gender" placeholder="请选择性别" style="width: 100%">
                  <el-option label="男" value="男"></el-option>
                  <el-option label="女" value="女"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="年龄" prop="age">
                <el-input v-model="empDraForm.age" placeholder="请输入年龄"/>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="出生日期" prop="dateOfBirth">
                <el-date-picker clearable
                                style="width: 100%"
                                v-model="empDraForm.dateOfBirth"
                                type="date"
                                placeholder="请选择">
                </el-date-picker>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="是否已婚" prop="isMarriage">
                <el-select v-model="empDraForm.isMarriage" placeholder="请选择" style="width: 100%">
                  <el-option label="未婚" value="未婚"></el-option>
                  <el-option label="已婚" value="已婚"></el-option>
                  <el-option label="离异" value="离异"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="是否生育" prop="isBirth">
                <el-select v-model="empDraForm.isBirth" placeholder="请选择" style="width: 100%">
                  <el-option label="是" value="是"></el-option>
                  <el-option label="否" value="否"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="民族" prop="ethnicGroup">
                <el-input v-model="empDraForm.ethnicGroup" placeholder="请输入民族"/>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="政治面貌" prop="politicalOutlook">
                <el-input v-model="empDraForm.politicalOutlook" placeholder="请输入"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="证件类型" prop="documentType">
                <el-select v-model="empDraForm.documentType" placeholder="请选择证件类型" style="width: 100%">
                  <el-option label="--请选择--" value=""></el-option>
                  <el-option label="身份证" value="身份证"></el-option>
                  <el-option label="港澳居民来往证明" value="港澳居民来往证明"></el-option>
                  <el-option label="香港身份证" value="香港身份证"></el-option>
                  <el-option label="台湾居民来往大陆通行证" value="台湾居民来往大陆通行证"></el-option>
                  <el-option label="台湾身份证" value="台湾身份证"></el-option>
                  <el-option label="澳门身份证" value="澳门身份证"></el-option>
                  <el-option label="外国护照" value="外国护照"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="证件号码" prop="identificationNumber">
                <el-input v-model="empDraForm.identificationNumber" placeholder="请输入证件号码"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="户籍类型" prop="registeredType">
                <el-select v-model="empDraForm.registeredType" placeholder="请选择户籍类型" style="width: 100%">
                  <el-option label="--请选择--" value=""></el-option>
                  <el-option label="农村户口" value="农村户口"></el-option>
                  <el-option label="城镇户口" value="城镇户口"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="户籍所在地" prop="registeredResidence">
                <el-input v-model="empDraForm.registeredResidence" placeholder="请输入户籍所在地"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-tag type="success">通讯信息</el-tag>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="电话" prop="phone">
                <el-input v-model="empDraForm.phone" placeholder="请输入电话号码"/>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="邮箱" prop="mailbox">
                <el-input v-model="empDraForm.mailbox" placeholder="请输入邮箱"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="紧急联系人" prop="emergencyContact">
                <el-input v-model="empDraForm.emergencyContact" placeholder="请输入紧急联系人"/>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="紧急联系人电话" prop="emergencyContactNumber">
                <el-input v-model="empDraForm.emergencyContactNumber" placeholder="请输入紧急联系人电话"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="现住址" prop="currentAddress">
                <el-input v-model="empDraForm.currentAddress" placeholder="请输入现住址"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-tag type="success">学历信息</el-tag>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="学校名称" prop="schoolName">
                <el-input v-model="empDraForm.schoolName" placeholder="请输入学校名称"/>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="所学专业" prop="major">
                <el-input v-model="empDraForm.major" placeholder="请输入所学专业"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="学历" prop="education">
                <el-select v-model="empDraForm.education" placeholder="请选择学历" style="width: 100%">
                  <el-option label="请选择" value=""></el-option>
                  <el-option label="不限" value="不限"></el-option>
                  <el-option label="专科" value="大专"></el-option>
                  <el-option label="本科" value="本科"></el-option>
                  <el-option label="硕士" value="硕士"></el-option>
                  <el-option label="博士" value="博士"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>

          <el-tag type="success">工资卡信息</el-tag>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="银行名称" prop="bankName">
                <el-input v-model="empDraForm.bankName" placeholder="请输入银行名称"/>
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="银行卡号" prop="bankCardNo">
                <el-input v-model="empDraForm.bankCardNo" placeholder="请输入银行卡号"/>
              </el-form-item>
            </el-col>
          </el-row>

          <el-row :gutter="24">
            <el-col :span="12">
              <el-form-item label="开户行地址" prop="bankAddress">
                <el-input v-model="empDraForm.bankAddress" placeholder="请输入开户行地址"/>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
        <div class="demo-drawer__footer" style="margin-left: 200px">
          <el-button @click="submitEmp" style="width: 200px" type="primary">确定</el-button>
          <el-button @click="closeEmp" style="width: 200px">取 消</el-button>
        </div>
      </div>
    </el-drawer>

    <el-row :gutter="10" class="mb8">
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <!-- 入职定薪对话框 -->
    <el-dialog :title="title" :visible.sync="rzdx" width="70%" append-to-body>
      <el-form ref="form" :model="rzdxform" :rules="rules" label-width="100px">
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="转正薪资/月" prop="zzSalary">
              <el-input v-model="rzdxform.zzSalary" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="试用薪资/月" prop="sySalary">
              <el-input v-model="rzdxform.sySalary" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="岗位结算价" prop="gwPrice">
              <el-input v-model="rzdxform.gwPrice" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="试用期结算价" prop="syPrice">
              <el-input v-model="rzdxform.syPrice" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="备注" prop="remarks">
              <el-input
                type="textarea"
                :rows="2"
                placeholder="请输入内容"
                v-model="rzdxform.remarks">
              </el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item prop="effectiveDate" label="定薪时间">
              <el-date-picker
                v-model="rzdxform.effectiveDate"
                type="date"
                placeholder="选择日期">
              </el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>
        <el-form-item prop="comId" label="薪酬模板">
          <div style="float: left;width:900px">
            <el-radio-group v-model="formSalary.comId">
              <el-radio @change="changeCom" v-for="item in comList" :label="item.id" border>
                {{ item.name }}
              </el-radio>
            </el-radio-group>
          </div>
          <div style="float: right">
            <el-pagination
              :current-page.sync="comParams.pageNum"
              :page-size="comParams.pageSize"
              layout="total, prev, pager, next"
              @current-change="getGroup"
              :total="comTotal">
            </el-pagination>
          </div>
        </el-form-item>
        <el-form-item prop="salaryItems" label="定薪明细">
          <div style="float: right;width: 50%;">

            <el-table :cell-class-name="tableCellClassName"
                      :header-cell-style="{background:'#3b76f3',color:'whitesmoke'}"
                      :data="formSalary.salaryItems" style="width: 100%">
              <el-table-column align="center" label="试用">
                <el-table-column align="center" prop="typeName"
                                 label="定薪项目"></el-table-column>
                <el-table-column align="center" prop="periodFront" label="入职定薪">
                  <template slot-scope="scope">
                    <el-input
                      v-if="scope.row.typeName === '奖金' || scope.row.typeName === '销售提成' ||scope.row.typeName === '招聘提成'"
                      type="text" :disabled="true"></el-input>
                    <el-input oninput="value=value.replace(/[^0-9.]/g,'')" v-else type="text"
                              v-model="scope.row.periodLater"></el-input>
                  </template>
                </el-table-column>
              </el-table-column>
            </el-table>
          </div>
          <div style="float: left;width: 50%">

            <el-table :cell-class-name="tableCellClassName"
                      :header-cell-style="{background:'#3b76f3',color:'whitesmoke'}"
                      :data="formSalary.salaryItems" style="width: 100%;">
              <el-table-column align="center" label="转正">
                <el-table-column align="center" prop="typeName"
                                 label="定薪项目"></el-table-column>
                <el-table-column align="center" prop="memberFront" label="入职定薪">
                  <template slot-scope="scope">
                    <el-input
                      v-if="scope.row.typeName === '奖金' || scope.row.typeName === '销售提成' ||scope.row.typeName === '招聘提成'"
                      :disabled="true" type="text"></el-input>
                    <el-input oninput="value=value.replace(/[^0-9.]/g,'')" v-else type="text"
                              v-model="scope.row.memberLater"></el-input>
                  </template>
                </el-table-column>
              </el-table-column>
            </el-table>
          </div>

        </el-form-item>

      </el-form>

      <div slot="footer" class="dialog-footer">
        <el-button type="primary" v-on='{click:Addrzdx}'>确定</el-button>
        <el-button @click="rzdx =false">取 消</el-button>
      </div>
    </el-dialog>
    <!-- 入职定薪查看对话框 -->
    <el-dialog :title="title" :visible.sync="rzcks" width="70%" append-to-body>
      <el-button
        size="mini"
        type="text"

        @click="rz = false"
      >编辑
      </el-button>
      <el-form ref="form" :model="rzdxform" :rules="rules" label-width="100px">
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="转正薪资/月" prop="zzSalary">
              <el-input :disabled="rz" v-model="rzdxform.zzSalary" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="试用薪资/月" prop="sySalary">
              <el-input :disabled="rz" v-model="rzdxform.sySalary" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="岗位结算价" prop="gwPrice">
              <el-input :disabled="rz" v-model="rzdxform.gwPrice" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="试用期结算价" prop="syPrice">
              <el-input :disabled="rz" v-model="rzdxform.syPrice" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="备注" prop="remarks">
              <el-input
                type="textarea"
                :rows="2"
                placeholder="请输入内容"
                :disabled="rz"
                v-model="rzdxform.remarks">
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="24">
            <el-table :data="empSalary" border
                      :header-cell-style="{background:'#cccccc'}" style="width: 100%">
              <el-table-column align="center" prop="typeName" label="薪资项目"/>
              <el-table-column align="center" prop="periodLater" label="试用期工资"/>
              <el-table-column align="center" prop="memberLater" label="转正工资"/>
            </el-table>
          </el-col>
        </el-row>

      </el-form>

      <div slot="footer" class="dialog-footer">
        <el-button type="primary" v-on='{click:Addrzdx}'>确定</el-button>
        <el-button @click="rzdxReset()">取 消</el-button>
      </div>
    </el-dialog>

    <!-- 入职登记对话框 -->
    <el-dialog :title="title" :visible.sync="deb" width="75%" append-to-body>
      <el-button
        v-if="cv"
        size="mini"
        type="text"

        @click="zz = false"
      >编辑
      </el-button>
      <el-form ref="form" :model="form" :rules="rzdj" label-width="100px">
        <el-tag type="success">入职信息</el-tag>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="入职日期" prop="employmentDate">
              <el-date-picker clearable
                              :disabled="zz"
                              style="width: 100%"
                              v-model="form.employmentDate"
                              type="date"
                              value-format="yyyy-MM-dd HH:mm:ss"
                              placeholder="请选择入职日期">
              </el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="试用期" prop="probationPeriod">
              <el-select v-model="form.probationPeriod" placeholder="请选择" style="width: 100%" :disabled="zz">
                <el-option label="请选择" value=""></el-option>
                <el-option label="1个月" value="1个月"></el-option>
                <el-option label="2个月" value="2个月"></el-option>
                <el-option label="3个月" value="3个月"></el-option>
                <el-option label="4个月" value="4个月"></el-option>
                <el-option label="5个月" value="5个月"></el-option>
                <el-option label="6个月" value="6个月"></el-option>
              </el-select>
            </el-form-item>

          </el-col>
        </el-row>


        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="岗位" prop="positionApplied">
              <el-input :disabled="zz" v-model="form.positionApplied" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="职位" prop="title">
              <treeselect @input="parentIdChange" v-model="form.title" :options="postOptions" :show-count="true"
                          placeholder="请选择职位"/>
            </el-form-item>
          </el-col>
          <!--          <el-col :span="12">
                      <el-form-item label="职位" prop="title">
                        <el-select :disabled="zz" v-model="form.title" filterable placeholder="请选择职位">
                          <el-option
                            v-for="item in post"
                            :key="item.name"
                            :label="item.name"
                            :value="item.name">
                          </el-option>
                        </el-select>
          &lt;!&ndash;              <el-input :disabled="zz" v-model="form.title" placeholder="请输入"/>&ndash;&gt;
                      </el-form-item>
                    </el-col>-->
        </el-row>


        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="工作性质" prop="workNature">
              <el-select :disabled="zz" v-model="form.workNature" placeholder="请选择" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="劳务外派" value="劳务外派"></el-option>
                <el-option label="全职" value="全职"></el-option>
                <el-option label="兼职" value="兼职"></el-option>
                <el-option label="外包" value="外包"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="员工状态" prop="status">
              <el-select :disabled="zz" v-model="form.status" placeholder="请选择" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="正式" value="4"></el-option>
                <el-option label="试用" value="3"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>


        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="归属部门" prop="deptName">
              <treeselect @input="parentIdChange" v-model="form.deptName" :options="deptOptions" :show-count="true"
                          placeholder="请选择归属部门"/>
            </el-form-item>
          </el-col>
          <!--          <el-col :span="12">
                      <el-form-item label="所在城市" prop="address">
                        <treeselect   @input="parentIdChange" v-model="form.address"   :options="addressDept" :show-count="true" placeholder="请选择所在城市"/>
                      </el-form-item>
                    </el-col>-->
        </el-row>

        <el-tag type="success">基本信息</el-tag>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="姓名" prop="name">
              <el-input :disabled="zz" v-model="form.name" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="性别" prop="gender">
              <el-select :disabled="zz" v-model="form.gender" placeholder="请选择性别" style="width: 100%">
                <el-option label="男" value="男"></el-option>
                <el-option label="女" value="女"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="年龄" prop="age">
              <el-input :disabled="zz" v-model="form.age" placeholder="请输入年龄"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="出生日期" prop="dateOfBirth">
              <el-date-picker clearable
                              :disabled="zz"
                              style="width: 100%"
                              v-model="form.dateOfBirth"
                              type="date"
                              value-format="yyyy-MM-dd HH:mm:ss"
                              placeholder="请选择">
              </el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="是否已婚" prop="isMarriage">
              <el-select :disabled="zz" v-model="form.isMarriage" placeholder="请选择" style="width: 100%">
                <el-option label="未婚" value="未婚"></el-option>
                <el-option label="已婚" value="已婚"></el-option>
                <el-option label="离异" value="离异"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="是否生育" prop="isBirth">
              <el-select :disabled="zz" v-model="form.isBirth" placeholder="请选择" style="width: 100%">
                <el-option label="是" value="是"></el-option>
                <el-option label="否" value="否"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="民族" prop="ethnicGroup">
              <el-input :disabled="zz" v-model="form.ethnicGroup" placeholder="请输入民族"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="政治面貌" prop="politicalOutlook">
              <el-input :disabled="zz" v-model="form.politicalOutlook" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="证件类型" prop="documentType">
              <el-select :disabled="zz" v-model="form.documentType" placeholder="请选择证件类型" style="width: 100%">
                <el-option label="--请选择--" value=""></el-option>
                <el-option label="身份证" value="身份证"></el-option>
                <el-option label="港澳居民来往证明" value="港澳居民来往证明"></el-option>
                <el-option label="香港身份证" value="香港身份证"></el-option>
                <el-option label="台湾居民来往大陆通行证" value="台湾居民来往大陆通行证"></el-option>
                <el-option label="台湾身份证" value="台湾身份证"></el-option>
                <el-option label="澳门身份证" value="澳门身份证"></el-option>
                <el-option label="外国护照" value="外国护照"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="证件号码" prop="identificationNumber">
              <el-input :disabled="zz" v-model="form.identificationNumber" placeholder="请输入证件号码"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="户籍类型" prop="registeredType">
              <el-select :disabled="zz" v-model="form.registeredType" placeholder="请选择户籍类型" style="width: 100%">
                <el-option label="--请选择--" value=""></el-option>
                <el-option label="农村户口" value="农村户口"></el-option>
                <el-option label="城镇户口" value="城镇户口"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="户籍所在地" prop="registeredResidence">
              <el-input :disabled="zz" v-model="form.registeredResidence" placeholder="请输入户籍所在地"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-tag type="success">通讯信息</el-tag>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="电话" prop="phone">
              <el-input :disabled="zz" v-model="form.phone" placeholder="请输入电话号码"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="邮箱" prop="mailbox">
              <el-input v-model="form.mailbox" placeholder="请输入邮箱"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="紧急联系人" prop="emergencyContact">
              <el-input :disabled="zz" v-model="form.emergencyContact" placeholder="请输入紧急联系人"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="紧急联系人电话" prop="emergencyContactNumber">
              <el-input :disabled="zz" v-model="form.emergencyContactNumber" placeholder="请输入紧急联系人电话"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="现住址" prop="currentAddress">
              <el-input :disabled="zz" v-model="form.currentAddress" placeholder="请输入现住址"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-tag type="success">学历信息</el-tag>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="学校名称" prop="schoolName">
              <el-input :disabled="zz" v-model="form.schoolName" placeholder="请输入学校名称"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="所学专业" prop="major">
              <el-input :disabled="zz" v-model="form.major" placeholder="请输入所学专业"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="学历" prop="education">
              <el-select :disabled="zz" v-model="form.education" placeholder="请选择学历" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="不限" value="不限"></el-option>
                <el-option label="专科" value="大专"></el-option>
                <el-option label="本科" value="本科"></el-option>
                <el-option label="硕士" value="硕士"></el-option>
                <el-option label="博士" value="博士"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>

        <el-tag type="success">工资卡信息</el-tag>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="银行名称" prop="bankName">
              <el-input :disabled="zz" v-model="form.bankName" placeholder="请输入银行名称"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="银行卡号" prop="bankCardNo">
              <el-input :disabled="zz" v-model="form.bankCardNo" placeholder="请输入银行卡号"/>
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="开户行地址" prop="bankAddress">
              <el-input :disabled="zz" v-model="form.bankAddress" placeholder="请输入开户行地址"/>
            </el-form-item>
          </el-col>
        </el-row>

      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancels">取 消</el-button>
      </div>
    </el-dialog>
    <!--入职事项对话框    -->
    <el-dialog :title="title" :visible.sync="rzsx" width="70%" append-to-body>
      <el-form ref="form" :model="form" label-width="100px">
        <center>
          <h1 style="color: #673ab7;">【{{ form.name }}】入职事项</h1>
        </center>
        <hr>
        <el-row :gutter="24">
          <el-col :span="8">
            &nbsp;&nbsp; &nbsp;<span>入职登记</span>
          </el-col>
          <el-col :span="8">
            <el-button type="info" v-if="form.enrollmentRegistration == 0">待完成</el-button>
            <el-button type="success" v-if="form.enrollmentRegistration == 1">已完成</el-button>

          </el-col>
          <el-col :span="8">
            <el-button
              size="mini"
              type="text"

              @click="handleDen(null)"
            >查看
            </el-button>
          </el-col>
        </el-row>
        <hr>
        <el-row :gutter="24">
          <el-col :span="8">
            &nbsp;&nbsp; &nbsp;<span>合同签订</span>
          </el-col>
          <el-col :span="8">
            <el-button type="info" v-if="form.contractSigning == 0">待完成</el-button>
            <el-button type="success" v-if="form.contractSigning == 1">已完成</el-button>
          </el-col>
          <el-col :span="8">
            <el-button v-if="form.contractSigning == 0"
                       size="mini"
                       type="text"
                       @click="hetAdd()"
                       v-hasPermi="['system:auitvo:edit']"
            >合同签署
            </el-button>
            <el-button v-if="form.contractSigning == 1"
                       size="mini"
                       type="text"
                       @click="hetById()"
                       v-hasPermi="['system:auitvo:edit']"
            >查看
            </el-button>
          </el-col>
        </el-row>
        <hr>
        <el-row :gutter="24">
          <el-col :span="8">
            &nbsp;&nbsp; &nbsp;<span>入职定薪</span>
          </el-col>
          <el-col :span="8">
            <el-button type="info" v-if="form.isSalary == 0 || form.isSalary == null  ">待完成</el-button>
            <el-button type="success" v-if="form.isSalary == 1">已完成</el-button>
          </el-col>
          <el-col :span="8">
            <el-button v-if="form.isSalary == 0 || form.isSalary == null "
                       size="mini"
                       type="text"
                       @click="rzAdd()"
                       v-hasPermi="['system:auitvo:edit']"
            >定薪
            </el-button>

            <el-button v-if="form.isSalary == 1"
                       size="mini"
                       type="text"
                       @click="rzck()"
                       v-hasPermi="['system:auitvo:edit']"
            >查看
            </el-button>
          </el-col>
        </el-row>
        <hr>
        <el-row :gutter="24">
          <el-col :span="8">
            &nbsp;&nbsp; &nbsp;<span>社保公积金</span>
          </el-col>
          <el-col :span="8">
            <el-button type="info" v-if="form.socialSecuritySalary == 0">待完成</el-button>
            <el-button type="success" v-if="form.socialSecuritySalary == 1">已完成</el-button>
            <el-button type="success" v-if="form.socialSecuritySalary === 3">已停保</el-button>

          </el-col>
          <el-col :span="8">
            <el-button
              size="mini"
              type="text"
              v-if="form.socialSecuritySalary == 0"
              @click="handleDens()"
            >办理增员
            </el-button>
            <el-button
              size="mini"
              type="text"
              v-if="form.socialSecuritySalary == 1"
              @click="findById()"
            >查看
            </el-button>
          </el-col>
        </el-row>
        <hr>
        <!--        <span>入职登记</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <el-button type="info" v-if="form.enrollmentRegistration == 0">待完成</el-button>
                <el-button type="success" v-if="form.enrollmentRegistration == 1">已完成</el-button>-->

      </el-form>


    </el-dialog>


    <!-- 合同查看对话框 -->
    <el-dialog :title="title" :visible.sync="hetck" width="70%" append-to-body>
      <el-form ref="form" :model="hetckform" label-width="100px">
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="合同编号" prop="contractNo">
              <el-input :disabled="ck" v-model="hetckform.contractNo" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="合同类型" prop="type">
              <el-select :disabled="ck" v-model="hetckform.type" placeholder="请选择" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="劳务合同" value="劳务合同"></el-option>
                <el-option label="劳务派遣合同" value="劳务派遣合同"></el-option>
                <el-option label="实习合同" value="实习合同"></el-option>
                <el-option label="劳动合同" value="劳动合同"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="合同开始日期" prop="auditTime">
              <el-date-picker clearable :disabled="ck"
                              style="width: 100%"
                              v-model="hetckform.auditTime"
                              type="date"
                              value-format="yyyy-MM-dd HH:mm:ss"
                              placeholder="请选择合同开始日期">
              </el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="合同结束日期" prop="endTime">
              <el-date-picker clearable :disabled="ck"
                              style="width: 100%"
                              v-model="hetckform.endTime"
                              type="date"
                              value-format="yyyy-MM-dd HH:mm:ss"
                              placeholder="请选择合同结束日期">
              </el-date-picker>
            </el-form-item>

          </el-col>
        </el-row>


        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="合同期限" prop="contractPeriod">
              <el-select :disabled="ck" v-model="hetckform.contractPeriod" placeholder="请选择" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="1年" value="1年"></el-option>
                <el-option label="2年" value="2年"></el-option>
                <el-option label="3年" value="3年"></el-option>
                <el-option label="4年" value="4年"></el-option>
                <el-option label="5年" value="5年"></el-option>

              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="合同执行状态" prop="contractStatus">
              <el-select :disabled="ck" v-model="hetckform.contractStatus" placeholder="请选择" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="未执行" value="未执行"></el-option>
                <el-option label="已执行" value="已执行"></el-option>
                <el-option label="已到期" value="已到期"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>


        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="签署公司" prop="residentEnterprises">
              <el-input :disabled="ck" v-model="hetckform.residentEnterprises" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>


      </el-form>

      <!--      <div slot="footer" class="dialog-footer">
              <el-button type="primary" @click="AddHet()">确认入职</el-button>
              <el-button @click="het =false">取 消</el-button>
            </div>-->
    </el-dialog>

    <!-- 签署合同对话框 -->
    <el-dialog :title="title" :visible.sync="het" width="70%" append-to-body>
      <el-form ref="form" :rules="htsx" :model="hetform" label-width="100px">
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="合同编号" prop="contractNo">
              <el-input v-model="hetform.contractNo" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="合同类型" prop="type">
              <el-select v-model="hetform.type" placeholder="请选择" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="劳务合同" value="劳务合同"></el-option>
                <el-option label="劳务派遣合同" value="劳务派遣合同"></el-option>
                <el-option label="实习合同" value="实习合同"></el-option>
                <el-option label="劳动合同" value="劳动合同"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="合同开始日期" prop="auditTime">
              <el-date-picker clearable
                              style="width: 100%"
                              v-model="hetform.auditTime"
                              type="date"
                              value-format="yyyy-MM-dd HH:mm:ss"
                              placeholder="请选择合同开始日期">
              </el-date-picker>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="合同结束日期" prop="endTime">
              <el-date-picker clearable
                              style="width: 100%"
                              v-model="hetform.endTime"
                              type="date"
                              value-format="yyyy-MM-dd HH:mm:ss"
                              placeholder="请选择合同结束日期">
              </el-date-picker>
            </el-form-item>

          </el-col>
        </el-row>


        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="合同期限" prop="contractPeriod">
              <el-select v-model="hetform.contractPeriod" placeholder="请选择" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="1年" value="1年"></el-option>
                <el-option label="2年" value="2年"></el-option>
                <el-option label="3年" value="3年"></el-option>
                <el-option label="4年" value="4年"></el-option>
                <el-option label="5年" value="5年"></el-option>

              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="合同执行状态" prop="contractStatus">
              <el-select v-model="hetform.contractStatus" placeholder="请选择" style="width: 100%">
                <el-option label="请选择" value=""></el-option>
                <el-option label="未执行" value="未执行"></el-option>
                <el-option label="已执行" value="已执行"></el-option>
                <el-option label="已到期" value="已到期"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>


        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="签署公司" prop="residentEnterprises">
              <el-input v-model="hetform.residentEnterprises" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>


        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="合同附件" prop="filePath">
              <el-upload
                ref="uploadRef"
                action=""
                accept=".pdf"
                :auto-upload="false"
                :on-change="handleChange"
                :show-file-list="false">
                <el-button
                  type="warning"
                  size="mini"
                >上传合同附件
                </el-button>
                <span v-text="this.filePath"></span>
                <span v-if="pd">
                  <font color="#a52a2a">
                    {{ mess }}
                  </font>
                </span>
              </el-upload>
            </el-form-item>
          </el-col>
        </el-row>

      </el-form>

      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="AddHet()">确认</el-button>
        <el-button @click="het =false">取 消</el-button>
      </div>
    </el-dialog>

    <!--淘汰弹出框 -->
    <el-dialog
      title="提示"
      :visible.sync="dialogVisible"
      width="30%"
    >
      <el-form :model="soelForm" rules="soelRules" ref="soelForm">
        <el-form-item prop="soeliminate" label="淘汰原因">
          <el-select v-model="soelForm.soeliminate" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="handleDeletes()">确 定</el-button>
      </div>
    </el-dialog>

    <el-table v-loading="loading" :data="managmentlist"
              style="width: 100%" max-height="100%">
      <!--      <el-table-column label="主键" align="center" prop="id" />-->
      <el-table-column label="姓名" align="center" prop="name" width="100"/>
      <el-table-column label="电话" align="center" prop="phone" width="130"/>
      <el-table-column label="应聘职位" :show-overflow-tooltip="true" align="center" prop="positionApplied"
                       width="140"/>
      <el-table-column label="岗位类型" align="center" prop="positionType" width="120"/>
<!--
<el-table-column label="项目组" :show-overflow-tooltip="true" align="center" prop="proName" width="100"/>
-->
      <el-table-column label="创建人" align="center" prop="uname" width="100"/>
      <el-table-column label="状态" align="center" prop="status">
        待入职
      </el-table-column>
      <el-table-column label="入职登记" align="center" prop="enrollmentRegistration">
        <template slot-scope="scope">
          <span v-if="scope.row.enrollmentRegistration == 0">待完成</span>
          <span v-if="scope.row.enrollmentRegistration == 1">已完成</span>
        </template>

      </el-table-column>
      <el-table-column label="合同签署" align="center" prop="contractSigning">
        <template slot-scope="scope">
          <span v-if="scope.row.contractSigning == 0">待完成</span>
          <span v-if="scope.row.contractSigning == 1">已完成</span>
        </template>
      </el-table-column>
      <el-table-column label="社保" align="center" prop="isFirst">
        <template slot-scope="scope">
          <span v-if="scope.row.socialSecuritySalary == 0">待完成</span>
          <span v-if="scope.row.socialSecuritySalary == 1">已完成</span>
        </template>
      </el-table-column>
      <el-table-column label="定薪" align="center" prop="isFirst">
        <template slot-scope="scope">
          <span v-if="scope.row.isSalary === 0 || scope.row.isSalary === null">待完成</span>
          <span v-if="scope.row.isSalary === 1">已完成</span>
        </template>
      </el-table-column>
      <el-table-column label="预计到岗日期" align="center" prop="expectedDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.expectedDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <!--      handleUpdate-->
      <el-table-column label="操作" width="200" align="center" class-name="small-padding fixed-width" fixed="right">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"

            @click="handleDen(scope.row.id)"
            v-hasPermi="['system:Management:edit']"
          >确定入职
          </el-button>

          <!--          <el-button v-if="scope.row.enrollmentRegistration == 0"
                      size="mini"
                      type="text"
                      @click="handleDen(scope.row.id)"
                      v-hasPermi="['system:auitvo:edit']"
                    >入职登记</el-button>-->

          <el-button
            size="mini"
            type="text"
            v-hasPermi="['system:Management:rzsx']"
            @click="handleRzsx(scope.row.id)"
          >入职事项
          </el-button>

          <!--          <el-button v-if="scope.row.contractSigning == 0"
                      size="mini"
                      type="text"
                      icon="el-icon-edit"
                      @click="hetAdd(scope.row.id)"
                      v-hasPermi="['system:auitvo:edit']"
                    >合同签署</el-button>
                    <el-button
                      size="mini"
                      type="text"
                      icon="el-icon-edit"
                      @click=""
                      v-hasPermi="['system:auitvo:edit']"
                    >社保定薪</el-button>-->
          <el-button
            size="mini"
            type="text"
            @click="dialog(scope.row.id)"
          >放弃入职
          </el-button>

        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />


    <!-- 办理参保对话框 -->
    <el-dialog :title="title" :visible.sync="cbopen" width="90%" :close-on-click-modal='false' append-to-body
               border>

      <el-form ref="form" :model="cbform" :rules="rules" label-width="80px">
        <h1>员工信息</h1>
        <el-button type="primary" @click="cd=false">编辑</el-button>
        <el-divider></el-divider>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="姓名:" prop="name">
              <el-input :disabled="true" v-model="cbform.name" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="员工状态:" prop="status">
              <el-input :disabled="true" v-model="status"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="工号:" prop="jobNo">
              <el-input :disabled="true" v-model="cbform.jobNo" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="入职日期:" prop="employmentDate">
              <el-input :disabled="true" v-model="cbform.employmentDate" placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="证件类型:" prop="documentType">
              <el-input :disabled="true" v-model="cbform.documentType" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="证件号码:" prop="identificationNumber">
              <el-input :disabled="true" v-model="cbform.identificationNumber" placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="个人社保号:" prop="sbNumber">
              <el-input :disabled="cd" v-model="cbform.sbNumber" placeholder="请输入"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="个人公积金号:" prop="gjNumber">
              <el-input :disabled="cd" v-model="cbform.gjNumber" placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <el-form ref="form" :model="form1" :rules="rule" label-width="80px">
        <h1>社保公积金</h1>

        <el-divider></el-divider>

        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="参保方案" prop="schemeName">
              <el-select v-model="form1.schemeName" @change="fan(form1.schemeName)" placeholder="请选择">
                <el-option
                  v-for="item in programme"
                  :key="item.sid"
                  :label="item.schemeName"


                  :value="item.sid">
                </el-option>

              </el-select>
              &nbsp;&nbsp;&nbsp;
              <el-button
                type="primary"
                plain
                icon="el-icon-plus"
                size="mini"
                @click="handleAdds"
                v-hasPermi="['system:scheme:add']"
              >新增方案
              </el-button>
            </el-form-item>

          </el-col>
          <el-col :span="12">
            <el-form-item label="参保月份" prop="insuredTime">
              <el-date-picker clearable

                              style="width: 100%"
                              v-model="form1.insuredTime"
                              type="date"
                              value-format="yyyy-MM-dd HH:mm:ss"
                              placeholder="请选择">
              </el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="参保城市" prop="schemeCity">
              <el-cascader
                size="large"
                :options="optionss"
                v-model="selectedAddressOptions"
                @change="handleChanges">
              </el-cascader>
            </el-form-item>

          </el-col>
          <el-col :span="12">
            <el-form-item label="缴纳平台" prop="gjNumber">
              <el-input v-model="form1.schemePlatform" placeholder="请输入"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <!--        <el-descriptions column="2" title="" >
                  <el-divider></el-divider>
                  &lt;!&ndash;                    <el-descriptions-item label="ID">{{ employeefiles.id }}</el-descriptions-item>&ndash;&gt;
                  <el-descriptions-item label="方案名称">{{form.schemeName}}</el-descriptions-item>
                  <el-descriptions-item label="参保平台">{{form.schemePlatform}}</el-descriptions-item>
                  <el-descriptions-item label="参保城市">{{form.schemeCity}}</el-descriptions-item>

                </el-descriptions>-->
        <h1>社保</h1>
        <el-divider></el-divider>
        <!--        <el-button type="primary" @click="zs=false">编辑</el-button>-->
        <!--        <el-checkbox v-model="checked" @change="bianji" >编辑</el-checkbox>-->
        <el-radio v-model="radio" @change="radio1" label="1">编辑</el-radio>
        <el-radio v-model="radio" @change="radio2" label="2">恢复默认</el-radio>
        <table border="1" cellspacing="1" cellpadding="0" bordercolor="#87cefa">
          <tr bgcolor="#87cefa">
            <td colspan="4" height="40" align="center">个人缴纳</td>
            <td colspan="4" height="40" align="center">企业缴纳</td>
          </tr>
          <tr bgcolor="#87cefa">
            <td width="11%" height="40" align="center">缴费项目</td>
            <td width="11%" height="40" align="center">基数</td>
            <td width="11%" height="40" align="center">缴费比例</td>
            <td width="11%" height="40" align="center">金额</td>
            <td width="11%" height="40" align="center">基数</td>
            <td width="11%" height="40" align="center">缴费比例</td>
            <td width="11%" height="40" align="center">金额</td>
            <td width="11%" height="40" align="center">小计</td>
          </tr>
          <tr>
            <td align="center">养老保险</td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grYlBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grYlProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.grYlMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companyYlBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companyYlProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.companyYlMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.ylInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">工商保险</td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grGsBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grGsProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.grGsMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companyGsBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companyGsProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.companyGsMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.gsInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">失业保险</td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grSyBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grSyProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.grSyMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companySyBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companySyProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.companySyMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.syInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">生育保险</td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grBirthBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grBirthProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.grBirthMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companyBirthBase"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companyBirthProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.companyBirthMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.birthInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">医疗保险</td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grCareBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.grCareProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.grCareMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companyCareBase"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zs" @blur="blurs()" v-model="form1.companyCareProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.companyCareMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.careInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td></td>
            <td align="center" colspan="3">个人缴纳：<input :disabled="true" v-model="form1.grInsuranceMoney"
                                                           placeholder="00.00"/></td>
            <td align="center" colspan="3">公司缴纳：<input :disabled="true" v-model="form1.companyInsuranceMoney"
                                                           placeholder="00.00"/></td>
            <td>合计：<input :disabled="true" v-model="form1.insuranceMoney" placeholder="00.00"/></td>
          </tr>
        </table>
        <h1>公积金</h1>
        <el-checkbox v-if="radio === '1'" v-model="checkedes" @change="nojj">不缴纳公积金</el-checkbox>
        <el-divider></el-divider>
        <table border="1" cellspacing="1" cellpadding="0" bordercolor="#87cefa">
          <tr bgcolor="#87cefa">
            <td colspan="4" height="40" align="center">个人缴纳</td>
            <td colspan="4" height="40" align="center">企业缴纳</td>
          </tr>
          <tr bgcolor="#87cefa">
            <td height="40" width="11%" align="center">缴费项目</td>
            <td height="40" width="11%" align="center">基数</td>
            <td height="40" width="11%" align="center">缴费比例</td>
            <td height="40" width="11%" align="center">金额</td>
            <td height="40" width="11%" align="center">基数</td>
            <td height="40" width="11%" align="center">缴费比例</td>
            <td height="40" width="11%" align="center">金额</td>
            <td height="40" width="11%" align="center">小计</td>
          </tr>
          <tr>
            <td align="center">公积金</td>
            <td>
              <el-input type="number" :disabled="zx" @blur="blurs()" v-model="form1.grFundBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zx" @blur="blurs()" v-model="form1.grFundProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.grFundMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zx" @blur="blurs()" v-model="form1.companyFundBase"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="zx" @blur="blurs()" v-model="form1.companyFundProportion"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.companyFundMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="form1.fundSubtotal" placeholder="00.00"/>
            </td>
          </tr>

          <tr>
            <td></td>
            <td align="center" colspan="3">个人缴纳：<input :disabled="true" v-model="form1.grFundPayment"
                                                           placeholder="00.00"/></td>
            <td align="center" colspan="3">公司缴纳：<input :disabled="true" v-model="form1.companyFundPayment"
                                                           placeholder="00.00"/></td>
            <td>合计：<input :disabled="true" v-model="form1.fundTotal" placeholder="00.00"/></td>
          </tr>
        </table>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submit">确 定</el-button>
        <el-button @click="cbopen=false">取 消</el-button>
      </div>
    </el-dialog>

    <el-dialog
      title="添加模板"
      :visible.sync="addmodel"
      width="30%"
    >

      <el-row :gutter="24">
        <el-col :span="12">


          方案名称:
          <el-input v-model="schemeName" placeholder="请输入"></el-input>

        </el-col>
      </el-row>
      <el-button @click="addmodel = false">取 消</el-button>
      <el-button type="primary" @click="addmodels()">确 定</el-button>

    </el-dialog>

    <!-- 添加或修改【请填写功能名称】对话框 -->
    <el-dialog :title="title" :visible.sync="addopen" width="90%" :close-on-click-modal='false' append-to-body
               border>

      <el-form ref="form" :model="addform" :rules="rules" label-width="80px">
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="方案名称" prop="schemeName">
              <el-input v-model="addform.schemeName" placeholder="请输入方案名称"/>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="参保平台" prop="schemePlatform">
              <el-input v-model="addform.schemePlatform" placeholder="请输入参保平台"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
          <el-col :span="12">
            <el-form-item label="参保城市" prop="schemeCity">
              <el-cascader
                size="large"
                :options="optionss"
                v-model="city"
                @change="handleChangess">
              </el-cascader>
              <!--              <el-input  v-model="form.schemeCity" placeholder="请输入参保城市"/>-->
            </el-form-item>
          </el-col>
        </el-row>
        <h1>社保</h1>
        <el-divider></el-divider>
        <table border="1" cellspacing="1" cellpadding="0" bordercolor="#87cefa">
          <tr bgcolor="#87cefa">
            <td colspan="4" height="40" align="center">个人缴纳</td>
            <td colspan="4" height="40" align="center">企业缴纳</td>
          </tr>
          <tr bgcolor="#87cefa">
            <td width="11%" height="40" align="center">缴费项目</td>
            <td width="11%" height="40" align="center">基数</td>
            <td width="11%" height="40" align="center">缴费比例</td>
            <td width="11%" height="40" align="center">金额</td>
            <td width="11%" height="40" align="center">基数</td>
            <td width="11%" height="40" align="center">缴费比例</td>
            <td width="11%" height="40" align="center">金额</td>
            <td width="11%" height="40" align="center">小计</td>
          </tr>
          <tr>
            <td align="center">养老保险</td>
            <td>
              <el-input type="number" v-model="addform.grYlBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.grYlProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.grYlMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companyYlBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companyYlProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.companyYlMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.ylInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">工商保险</td>
            <td>
              <el-input type="number" v-model="addform.grGsBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.grGsProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.grGsMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companyGsBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companyGsProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.companyGsMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.gsInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">失业保险</td>
            <td>
              <el-input type="number" v-model="addform.grSyBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.grSyProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.grSyMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companySyBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companySyProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.companySyMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.syInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">生育保险</td>
            <td>
              <el-input type="number" v-model="addform.grBirthBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.grBirthProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.grBirthMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companyBirthBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companyBirthProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.companyBirthMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.birthInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">医疗保险</td>
            <td>
              <el-input type="number" v-model="addform.grCareBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.grCareProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.grCareMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companyCareBase" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" v-model="addform.companyCareProportion" @blur="blures()" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.companyCareMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.careInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td></td>
            <td align="center" colspan="3">个人缴纳：<input :disabled="true" v-model="addform.grInsuranceMoney"
                                                           placeholder="00.00"/></td>
            <td align="center" colspan="3">公司缴纳：<input :disabled="true" v-model="addform.companyInsuranceMoney"
                                                           placeholder="00.00"/></td>
            <td>合计：<input :disabled="true" v-model="addform.insuranceMoney" placeholder="00.00"/></td>
          </tr>
        </table>
        <h1>公积金</h1>
        <el-checkbox v-model="checkedess" @change="nojjs">不缴纳公积金</el-checkbox>
        <el-divider></el-divider>
        <table border="1" cellspacing="1" cellpadding="0" bordercolor="#87cefa">
          <tr bgcolor="#87cefa">
            <td colspan="4" height="40" align="center">个人缴纳</td>
            <td colspan="4" height="40" align="center">企业缴纳</td>
          </tr>
          <tr bgcolor="#87cefa">
            <td height="40" width="11%" align="center">缴费项目</td>
            <td height="40" width="11%" align="center">基数</td>
            <td height="40" width="11%" align="center">缴费比例</td>
            <td height="40" width="11%" align="center">金额</td>
            <td height="40" width="11%" align="center">基数</td>
            <td height="40" width="11%" align="center">缴费比例</td>
            <td height="40" width="11%" align="center">金额</td>
            <td height="40" width="11%" align="center">小计</td>
          </tr>
          <tr>
            <td align="center">公积金</td>
            <td>
              <el-input type="number" :disabled="isjn" v-model="addform.grFundBase" @blur="blures()"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="isjn" v-model="addform.grFundProportion" @blur="blures()"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.grFundMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="isjn" v-model="addform.companyFundBase" @blur="blures()"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="isjn" v-model="addform.companyFundProportion" @blur="blures()"
                        placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.companyFundMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input type="number" :disabled="true" v-model="addform.fundSubtotal" placeholder="00.00"/>
            </td>
          </tr>

          <tr>
            <td></td>
            <td align="center" colspan="3">个人缴纳：<input :disabled="true" v-model="addform.grFundPayment"
                                                           placeholder="00.00"/></td>
            <td align="center" colspan="3">公司缴纳：<input :disabled="true" v-model="addform.companyFundPayment"
                                                           placeholder="00.00"/></td>
            <td>合计：<input :disabled="true" v-model="addform.fundTotal" placeholder="00.00"/></td>
          </tr>
        </table>


      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForms">确 定</el-button>
        <el-button @click="addopen == false">取 消</el-button>
      </div>
    </el-dialog>

    <!-- 详情对话框 -->
    <el-dialog :title="title" :visible.sync="sbopen" width="90%" :close-on-click-modal='false' append-to-body
               border>

      <el-form ref="form" :model="form2" :rules="rules" label-width="80px">
        <h1>员工信息</h1>
        <el-divider></el-divider>
        <el-descriptions column="2" title="">
          <el-divider></el-divider>
          <!--                    <el-descriptions-item label="ID">{{ employeefiles.id }}</el-descriptions-item>-->
          <el-descriptions-item label="姓名">{{ form2.name }}</el-descriptions-item>

          <el-descriptions-item label="员工状态" v-if="form2.status == 3">试用</el-descriptions-item>
          <el-descriptions-item label="员工状态" v-if="form2.status == 4">正式</el-descriptions-item>
          <el-descriptions-item label="工号">{{ form2.jobNo }}</el-descriptions-item>
          <el-descriptions-item label="入职日期">{{ form2.employmentDate }}</el-descriptions-item>
          <el-descriptions-item label="证件类型">{{ form2.documentType }}</el-descriptions-item>
          <el-descriptions-item label="证件号码">{{ form2.identificationNumber }}</el-descriptions-item>
          <el-descriptions-item label="个人社保号">{{ form2.sbNumber }}</el-descriptions-item>
          <el-descriptions-item label="个人公积金号">{{ form2.gjNumber }}</el-descriptions-item>
        </el-descriptions>
        <h1>参保信息</h1>
        <el-divider></el-divider>
        <el-descriptions column="2" title="">
          <el-divider></el-divider>
          <!--                    <el-descriptions-item label="ID">{{ employeefiles.id }}</el-descriptions-item>-->
          <el-descriptions-item label="方案名称">{{ form2.schemeName }}</el-descriptions-item>
          <el-descriptions-item label="参保平台">{{ form2.schemePlatform }}</el-descriptions-item>
          <el-descriptions-item label="参保城市">{{ form2.schemeCity }}</el-descriptions-item>

        </el-descriptions>
        <h1>社保</h1>
        <el-divider></el-divider>
        <table border="1" cellspacing="1" cellpadding="0" bordercolor="#87cefa">
          <tr bgcolor="#87cefa">
            <td colspan="4" height="40" align="center">个人缴纳</td>
            <td colspan="4" height="40" align="center">企业缴纳</td>
          </tr>
          <tr bgcolor="#87cefa">
            <td width="11%" height="40" align="center">缴费项目</td>
            <td width="11%" height="40" align="center">基数</td>
            <td width="11%" height="40" align="center">缴费比例</td>
            <td width="11%" height="40" align="center">金额</td>
            <td width="11%" height="40" align="center">基数</td>
            <td width="11%" height="40" align="center">缴费比例</td>
            <td width="11%" height="40" align="center">金额</td>
            <td width="11%" height="40" align="center">小计</td>
          </tr>
          <tr>
            <td align="center">养老保险</td>
            <td>
              <el-input :disabled="true" v-model="form2.grYlBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grYlProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grYlMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyYlBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyYlProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyYlMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.ylInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">工商保险</td>
            <td>
              <el-input :disabled="true" v-model="form2.grGsBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grGsProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grGsMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyGsBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyGsProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyGsMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.gsInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">失业保险</td>
            <td>
              <el-input :disabled="true" v-model="form2.grSyBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grSyProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grSyMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companySyBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companySyProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companySyMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.syInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">生育保险</td>
            <td>
              <el-input :disabled="true" v-model="form2.grBirthBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grBirthProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grBirthMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyBirthBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyBirthProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyBirthMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.birthInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td align="center">医疗保险</td>
            <td>
              <el-input :disabled="true" v-model="form2.grCareBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grCareProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.grCareMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyCareBase" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyCareProportion" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.companyCareMoney" placeholder="00.00"/>
            </td>
            <td>
              <el-input :disabled="true" v-model="form2.careInsuranceMoney" placeholder="00.00"/>
            </td>
          </tr>
          <tr>
            <td></td>
            <td align="center" colspan="3">个人缴纳：<input :disabled="true" v-model="form2.grInsuranceMoney"
                                                           placeholder="00.00"/></td>
            <td align="center" colspan="3">公司缴纳：<input :disabled="true" v-model="form2.companyInsuranceMoney"
                                                           placeholder="00.00"/></td>
            <td>合计：<input :disabled="true" v-model="form2.insuranceMoney" placeholder="00.00"/></td>
          </tr>
        </table>
        <div v-if="form2.fundTotal !== 0">
          <h1>公积金</h1>
          <el-divider></el-divider>
          <table border="1" cellspacing="1" cellpadding="0" bordercolor="#87cefa">
            <tr bgcolor="#87cefa">
              <td colspan="4" height="40" align="center">个人缴纳</td>
              <td colspan="4" height="40" align="center">企业缴纳</td>
            </tr>
            <tr bgcolor="#87cefa">
              <td height="40" width="11%" align="center">缴费项目</td>
              <td height="40" width="11%" align="center">基数</td>
              <td height="40" width="11%" align="center">缴费比例</td>
              <td height="40" width="11%" align="center">金额</td>
              <td height="40" width="11%" align="center">基数</td>
              <td height="40" width="11%" align="center">缴费比例</td>
              <td height="40" width="11%" align="center">金额</td>
              <td height="40" width="11%" align="center">小计</td>
            </tr>
            <tr>
              <td align="center">公积金</td>
              <td>
                <el-input :disabled="true" v-model="form2.grFundBase" placeholder="00.00"/>
              </td>
              <td>
                <el-input :disabled="true" v-model="form2.grFundProportion" placeholder="00.00"/>
              </td>
              <td>
                <el-input :disabled="true" v-model="form2.grFundMoney" placeholder="00.00"/>
              </td>
              <td>
                <el-input :disabled="true" v-model="form2.companyFundBase" placeholder="00.00"/>
              </td>
              <td>
                <el-input :disabled="true" v-model="form2.companyFundProportion" placeholder="00.00"/>
              </td>
              <td>
                <el-input :disabled="true" v-model="form2.companyFundMoney" placeholder="00.00"/>
              </td>
              <td>
                <el-input :disabled="true" v-model="form2.fundSubtotal" placeholder="00.00"/>
              </td>
            </tr>

            <tr>
              <td></td>
              <td align="center" colspan="3">个人缴纳：<input :disabled="true" v-model="form2.grFundPayment"
                                                             placeholder="00.00"/></td>
              <td align="center" colspan="3">公司缴纳：<input :disabled="true" v-model="form2.companyFundPayment"
                                                             placeholder="00.00"/></td>
              <td>合计：<input :disabled="true" v-model="form2.fundTotal" placeholder="00.00"/></td>
            </tr>
          </table>
        </div>

      </el-form>
    </el-dialog>
  </div>


</template>

<script>
import {
  list,
  statisticsNum,
  giveUp,
  regiSter,
  hetAdd,
  selectById,
  rzdxAdd, hetById, rzdxfindById, updaterzdx
} from "@/api/system/Management";
import {uploadFile2} from '@/api/system/resume'
// import {deptTreeSelect} from '@/api/system/dict'
import {deptTreeSelect} from "@/api/system/user"
import {postTreeSelect} from '@/api/system/org'
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import {listPost} from '@/api/system/itopost'
import {deptaddressTreeSelect} from '@/api/system/address'
import {getEmployeefiles, updateEmployeefiles,insertEmpForm} from '@/api/system/employeefiles'
import {CodeToText, regionData, TextToCode} from 'element-china-area-data'
import {add, addScheme, getScheme, listSchemes} from '@/api/system/scheme'
import {
  listGroup,
  getGroup
} from "@/api/system/group";
import {
  addEmpSalary, getEmpSalaryListByEmpId
} from '@/api/system/employeeSalary'
import {listStation} from "@/api/system/delivery";
import Template from "@/views/system/email/ItoTemplate.vue";

export default {
  components: {Template, Treeselect},
  name: "Auitvo",
  data() {
    return {

      form2: {},
      sbopen: null,
      query: {
        pageNum: null,
        pageSize: null,
        schemeName: null,
        schemePlatform: null,
        schemeCity: null,
        grYlBase: null,
        grGsBase: null,
        grSyBase: null,
        grBirthBase: null,
        grCareBase: null,
        grYlProportion: null,
        grGsProportion: null,
        grSyProportion: null,
        grBirthProportion: null,
        grCareProportion: null,
        grYlMoney: null,
        grGsMoney: null,
        grSyMoney: null,
        grBirthMoney: null,
        grCareMoney: null,
        companyYlBase: null,
        companyGsBase: null,
        companySyBase: null,
        companyBirthBase: null,
        companyCareBase: null,
        companyYlProportion: null,
        companyGsProportion: null,
        companySyProportion: null,
        companyBirthProportion: null,
        companyCareProportion: null,
        companyYlMoney: null,
        companyGsMoney: null,
        companySyMoney: null,
        companyBirthMoney: null,
        companyCareMoney: null,
        grInsuranceMoney: null,
        companyInsuranceMoney: null,
        insuranceMoney: null,
        ylInsuranceMoney: null,
        gsInsuranceMoney: null,
        syInsuranceMoney: null,
        birthInsuranceMoney: null,
        careInsuranceMoney: null,
        grFundBase: null,
        grFundProportion: null,
        grFundMoney: null,
        companyFundBase: null,
        companyFundProportion: null,
        companyFundMoney: null,
        fundSubtotal: null,
        fundTotal: null,
        grFundPayment: null,
        companyFundPayment: null,
        isFund: null,
        isDelete: null
      },
      checkedes: false,
      checkedess: false,
      schemeName: null,
      sid: null,
      radio: '2',
      optionss: regionData,
      cbform: {},
      city: [],
      form1: {
        grYlBase: 0.00,
        grGsBase: 0.00,
        grSyBase: 0.00,
        grBirthBase: 0.00,
        grCareBase: 0.00,
        grYlProportion: 0.00,
        grGsProportion: 0.00,
        grSyProportion: 0.00,
        grBirthProportion: 0.00,
        grCareProportion: 0.00,
        grYlMoney: 0.00,
        grGsMoney: 0.00,
        grSyMoney: 0.00,
        grBirthMoney: 0.00,
        grCareMoney: 0.00,
        companyYlBase: 0.00,
        companyGsBase: 0.00,
        companySyBase: 0.00,
        companyBirthBase: 0.00,
        companyCareBase: 0.00,
        companyYlProportion: 0.00,
        companyGsProportion: 0.00,
        companySyProportion: 0.00,
        companyBirthProportion: 0.00,
        companyCareProportion: 0.00,
        companyYlMoney: 0.00,
        companyGsMoney: 0.00,
        companySyMoney: 0.00,
        companyBirthMoney: 0.00,
        companyCareMoney: 0.00,
        grInsuranceMoney: 0.00,
        companyInsuranceMoney: 0.00,
        insuranceMoney: 0.00,
        ylInsuranceMoney: 0.00,
        gsInsuranceMoney: 0.00,
        syInsuranceMoney: 0.00,
        birthInsuranceMoney: 0.00,
        careInsuranceMoney: 0.00,
        grFundBase: 0.00,
        grFundProportion: 0.00,
        grFundMoney: 0.00,
        companyFundBase: 0.00,
        companyFundProportion: 0.00,
        companyFundMoney: 0.00,
        fundSubtotal: 0.00,
        fundTotal: 0.00,
        grFundPayment: 0.00,
        companyFundPayment: 0.00,
      },
      zs: false,
      zx: false,
      // 部门树选项
      deptOptions: undefined,
      addressDept: undefined,
      postOptions: undefined,
      selectedAddressOptions: [],
      programme: [],
      pd: false,
      isjn: false,
      mess: null,
      rzcks: false,
      addform: {
        grYlBase: 0.00,
        grGsBase: 0.00,
        grSyBase: 0.00,
        grBirthBase: 0.00,
        grCareBase: 0.00,
        grYlProportion: 0.00,
        grGsProportion: 0.00,
        grSyProportion: 0.00,
        grBirthProportion: 0.00,
        grCareProportion: 0.00,
        grYlMoney: 0.00,
        grGsMoney: 0.00,
        grSyMoney: 0.00,
        grBirthMoney: 0.00,
        grCareMoney: 0.00,
        companyYlBase: 0.00,
        companyGsBase: 0.00,
        companySyBase: 0.00,
        companyBirthBase: 0.00,
        companyCareBase: 0.00,
        companyYlProportion: 0.00,
        companyGsProportion: 0.00,
        companySyProportion: 0.00,
        companyBirthProportion: 0.00,
        companyCareProportion: 0.00,
        companyYlMoney: 0.00,
        companyGsMoney: 0.00,
        companySyMoney: 0.00,
        companyBirthMoney: 0.00,
        companyCareMoney: 0.00,
        grInsuranceMoney: 0.00,
        companyInsuranceMoney: 0.00,
        insuranceMoney: 0.00,
        ylInsuranceMoney: 0.00,
        gsInsuranceMoney: 0.00,
        syInsuranceMoney: 0.00,
        birthInsuranceMoney: 0.00,
        careInsuranceMoney: 0.00,
        grFundBase: 0.00,
        grFundProportion: 0.00,
        grFundMoney: 0.00,
        companyFundBase: 0.00,
        companyFundProportion: 0.00,
        companyFundMoney: 0.00,
        fundSubtotal: 0.00,
        fundTotal: 0.00,
        grFundPayment: 0.00,
        companyFundPayment: 0.00,
      },
      status: null,
      rz: true,
      ck: true,
      rzdxform: {},
      emp: {},
      orm: {},
      rzdx: false,
      cv: false,
      zz: true,
      cd: true,
      filePath: null,
      hetck: false,
      hetckform: {},
      het: false,
      deb: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      id: null,
      eid: null,
      resumeId: null,
      isFirst: null,
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      soelForm: {
        soeliminate: null
      },
      soelRules: {
        soeliminate: [
          {required: true, message: '淘汰原因不能为空', trigger: 'change'}
        ]
      },
      // 总条数
      total: 0,
      rzsx: false,
      cbopen: false,
      // 【请填写功能名称】表格数据
      managmentlist: [],
      tableData: [],
      post: [],
      statisticsNum: {
        count0: 0,
        count1: 0,
        count2: 0,
        count3: 0,
        count4: 0
      },
      dialogVisible: false,
      addopen: false,
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      options: [{
        value: null,
        label: '请选择'
      }, {
        value: '个人原因',
        label: '个人原因'
      }, {
        value: '接收其他offer',
        label: '接收其他offer'
      }, {
        value: '薪资不满意',
        label: '薪资不满意'
      }, {
        value: '职位不满意',
        label: '职位不满意'
      }, {
        value: '工作地点不满意',
        label: '工作地点不满意'
      }, {
        value: '其他',
        label: '其他'
      }],
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        status: 0,
        all: null,
        name: null,
        gender: null,
        age: null,
        dateOfBirth: null,
        isMarriage: null,
        isBirth: null,
        ethnicGroup: null,
        politicalOutlook: null,
        documentType: null,
        identificationNumber: null,
        registeredResidence: null,
        phone: null,
        mailbox: null,
        currentAddress: null,
        emergencyContact: null,
        emergencyContactNumber: null,
        schoolName: null,
        education: null,
        major: null,
        isDelete: null,
      },
      //合同表单参数
      hetform: {},
      addmodel: false,
      // 表单参数
      form: {},
      rule: {
        schemeName: [
          {required: true, message: '请选择参保方案', trigger: 'change'}
        ],

        insuredTime: [
          {type: 'date', required: true, message: '请选择参保日期', trigger: 'change'}
        ],
      },
      // 表单校验
      rules: {
        zzSalary: [
          {required: true, message: '转正薪资不能为空', trigger: 'blur'}
        ],
        sySalary: [
          {required: true, message: '试用薪资不能为空', trigger: 'blur'}
        ],
        remarks: [
          {required: true, message: '备注不能为空', trigger: 'blur'}
        ],
        effectiveDate: [
          {type: 'date', required: true, message: '请选择日期', trigger: 'change'}
        ]
      },

      rzdj: {
        employmentDate: [
          {required: true, message: '入职日期不能为空', trigger: 'blur'}
        ],
        probationPeriod: [
          {required: true, message: '试用期不能为空', trigger: 'change'}
        ],
        positionApplied: [
          {required: true, message: '岗位不能为空', trigger: 'blur'}
        ],
        title: [
          {required: true, message: '职位不能为空', trigger: 'blur'}
        ],
        workNature: [
          {required: true, message: '工作性质不能为空', trigger: 'change'}
        ],
        status: [
          {required: true, message: '员工状态不能为空', trigger: 'change'}
        ],
        deptName: [
          {required: true, message: '组织部门不能为空', trigger: 'change'}
        ],
        name: [
          {required: true, message: '姓名不能为空', trigger: 'blur'}
        ],
        age: [
          {required: true, message: '年龄不能为空', trigger: 'blur'}
        ],
      },

      htsx: {
        contractNo: [
          {required: true, message: '合同编号不能为空', trigger: 'blur'}
        ],
        residentEnterprises: [
          {required: true, message: '签署公司不能为空', trigger: 'blur'}
        ],
        auditTime: [
          {required: true, message: '开始日期不能为空', trigger: 'blur'}
        ],
        endTime: [
          {required: true, message: '结束日期不能为空', trigger: 'blur'}
        ],
        type: [
          {required: true, message: '类型不能为空', trigger: 'change'}
        ],
        contractPeriod: [
          {required: true, message: '合同期限不能为空', trigger: 'change'}
        ],
        contractStatus: [
          {required: true, message: '合同执行状态不能为空', trigger: 'change'}
        ],
      },
      resumeIds: [],
      formSalary: {
        comId: 1,
        cause: "入职定薪",
        empId: undefined,
        status: '0',
        salaryItems: [],
        effectiveDate: undefined,
        remark: ''
      },
      comList: [],
      comParams: {
        pageNum: 1,
        pageSize: 4
      },
      comTotal: 0,
      empSalary: [],
      queryStationParams:{
        pageNum: 1,
        pageSize: 10,
        isDelete: '0'
      },
      stationList:[],
      stationTotal:0,
      statainTable:false,
      empDraForm: {},
      empDraRules: {
        employmentDate: [
          {required: true, message: '入职日期不能为空', trigger: 'blur'}
        ],
        probationPeriod: [
          {required: true, message: '试用期不能为空', trigger: 'change'}
        ],
        positionApplied: [
          {required: true, message: '岗位不能为空', trigger: 'blur'}
        ],
        title: [
          {required: true, message: '职位不能为空', trigger: 'blur'}
        ],
        workNature: [
          {required: true, message: '工作性质不能为空', trigger: 'change'}
        ],
        status: [
          {required: true, message: '员工状态不能为空', trigger: 'change'}
        ],
        deptName: [
          {required: true, message: '组织部门不能为空', trigger: 'change'}
        ],
        name: [
          {required: true, message: '姓名不能为空', trigger: 'blur'}
        ],
        age: [
          {required: true, message: '年龄不能为空', trigger: 'blur'}
        ],
      },
      empDrawer: false
    };
  },
  created() {
    this.getDeptTree();
    this.getPostTree();
    this.getList();
    this.statistics();
  },
  methods: {
    submitEmp(){
      if (this.empDraForm.stationId !== undefined && this.empDraForm.stationId !== null){
        this.$refs["empDraForm"].validate(valid => {
            if (valid) {
              insertEmpForm(this.empDraForm).then(res =>{
                this.empDrawer = false
                this.getList();
                this.statistics();
                this.$message({
                  message: '添加成功',
                  type: 'success'
                });
              })
            }
        })
      }else {
        this.$message({
          message: '请选择入职岗位',
          type: 'warning'
        });
      }
    },
    closeEmp(){
      this.empDraForm = {}
    },
    selectStation(row){
      this.empDraForm.stationId = row.stationId
      this.empDraForm.stationName = row.stationName
      this.empDraForm.positionApplied = row.stationName
      this.empDraForm.stationCategory = row.stationCategory
      this.empDraForm.companyName = row.companyName
      this.statainTable = false
    },
    changeStation() {
      this.loading = true;
      listStation(this.queryStationParams).then(response => {
        this.stationList = response.rows;
        this.stationTotal = response.total
        this.statainTable = true
      });
      this.loading = false;
    },
    addEmp() {
      this.empDrawer = true
    },
    handleClose() {
      this.empDrawer = false
      this.empDraForm = {}
    },
    tableCellClassName({row, column, rowIndex, columnIndex}) {
      if (columnIndex === 0) {
        return 'warning-cell'
      } else {
        return 'success-cell'
      }
      return ''
    },
    changeCom() {
      getGroup(this.formSalary.comId).then(res => {
        this.formSalary.salaryItems = []
        res.data.salaryItems.split(",").map(s => {
          let sal = {
            typeName: '',
            periodLater: 0.00,
            memberLater: 0.00
          }
          sal.typeName = s
          this.formSalary.salaryItems.push(sal)
        })
      })
    },
    getGroup() {
      listGroup(this.comParams).then(response => {
        this.comList = response.rows;
        this.comTotal = response.total
      });
    },
    abc(s) {
      var path = null;
      if (s == 0) {
        path = 'beemployed'
      }
      if (s == 1) {
        path = 'employeds'
      }
      if (s == 2) {
        path = 'rpopost'
      }
      if (s == 3) {
        path = 'Abemployment'
      }

      this.$router.push({path: '/employeefiles/Management/' + path}).catch(() => {
      })
    },
    /*查询社保方案*/
    /** 查询【请填写功能名称】列表 */
    getList() {
      this.loading = true;

      list(this.queryParams).then(response => {
        this.managmentlist = response.rows;
        this.total = response.total;
      });
      this.loading = false;
      listSchemes(this.query).then(response => {
        this.programme = response.rows;


      });
    },
    /** 统计数量 */
    statistics() {
      statisticsNum().then(response => {
        if (response.data !== undefined) {
          this.statisticsNum = response.data;
        }
      });
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        name: null,
        status: 0,
        all: null,
        gender: null,
        age: null,
        dateOfBirth: null,
        isMarriage: null,
        isBirth: null,
        ethnicGroup: null,
        politicalOutlook: null,
        documentType: null,
        identificationNumber: null,
        registeredResidence: null,
        phone: null,
        mailbox: null,
        currentAddress: null,
        emergencyContact: null,
        emergencyContactNumber: null,
        schoolName: null,
        education: null,
        major: null,
        isDelete: null,
        createTime: null,
        updateTime: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.queryParams = {
        pageNum: 1,
        pageSize: 10,
        status: 0,
        all: null,
        name: null,
        gender: null,
        age: null,
        dateOfBirth: null,
        isMarriage: null,
        isBirth: null,
        ethnicGroup: null,
        politicalOutlook: null,
        documentType: null,
        identificationNumber: null,
        registeredResidence: null,
        phone: null,
        mailbox: null,
        currentAddress: null,
        emergencyContact: null,
        emergencyContactNumber: null,
        schoolName: null,
        education: null,
        major: null,
        isDelete: null,
      },
        this.resetForm("queryForm");
      this.handleQuery();
    },


    /** 确认入职按钮 */
    handleUpdate(id) {
      this.form.id = id;
      this.open = true;
    },
    /* /!** 确认入职对话框 *!/
     updateForm() {
       updateManagement(this.form).then(response => {
         this.$modal.msgSuccess("入职成功");
         this.open = false;
         this.statistics();
         this.getList();
       });
     },*/
    /** 确认入职对话框取消 */
    cancel() {
      this.open = false;
      this.reset();

    },

    /**入职登记对话框 **/
    handleDen(id) {
      this.zz = false;
      listPost(null).then(response => {
        this.post = response.rows;
      });
      if (id == null) {
        this.cv = true;
        this.zz = true;
        this.form.status = null;
        this.deb = true;

      } else {

        selectById(id).then(response => {
          this.form = response.data;
          this.form.title = undefined
          this.form.status = null;
          this.deb = true;
        });
      }

    },
    /**入职事项对话框 **/
    handleRzsx(id) {
      this.id = id;
      selectById(id).then(response => {
        this.form = response.data;

        this.rzsx = true;
      });
    },
    /** 入职的登记取消对话框 */
    cancels() {
      this.deb = false;
      this.zz = false;
    },
    /**入职登记确定按钮 **/
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.form.enrollmentRegistration = 1;
          regiSter(this.form).then(response => {
            this.$modal.msgSuccess("操作成功");
            this.form = {};
            this.getList();
            this.cancels()
            this.rzsx = false
          });
        }
      })


    },
    /**放弃入职按钮 **/
    dialog(id) {
      this.id = id;
      this.dialogVisible = true;
    },
    /**淘汰按钮 **/
    handleDeletes() {

      this.$refs["soelForm"].validate(valid => {
        if (valid) {
          var id = this.id;
          var soeliminate = this.soelForm.soeliminate;
          giveUp(id, soeliminate).then(response => {
            this.dialogVisible = false;
            this.$modal.msgSuccess("操作成功");
            this.getList();
            this.statistics();
          });
        }
      })
    },
    /**合同签署按钮 **/
    hetAdd() {
      this.hetform.id = this.form.id;
      this.het = true;
    },

    /*文件上传*/
    handleChange(file) {
      if (file != null) {
        let formData = new FormData();
        formData.append('file', file.raw)
        uploadFile2(formData).then(response => {
          this.filePath = response;
          this.hetform.filePath = this.filePath
          this.pd = false;

        });
      }
    }
    ,
    /**合同部署确认按钮 **/
    AddHet() {
      if (this.filePath == null) {
        this.pd = true;
        this.mess = '请上传附件文件'

      } else {
        this.pd = false;
      }
      this.$refs["form"].validate(valid => {


        if (this.pd == false) {
          if (valid) {
            hetAdd(this.hetform).then(response => {
              this.het = false;
              this.$modal.msgSuccess("操作成功");
              this.hetform.filePath = null
              this.rzsx = false;
              this.getList();
              this.statistics();
            });

          }
        }

      });


    },


    /**入职定薪对话框 **/
    rzAdd() {
      this.rzdxform = {};
      this.getGroup();
      this.changeCom()
      this.rzdx = true;
    },
    /**入职定薪查看对话框 **/
    rzck() {

      this.rzcks = true;
      var id = this.id;
      this.rz = true;

      this.status = 0;
      rzdxfindById(id).then(response => {
        this.rzdxform = response.data;
      });

      getEmpSalaryListByEmpId(id).then(res => {
        this.empSalary = res.data
      })
    },
    rzdxReset() {
      this.rzdx = false;
      this.rzsx = false;
      this.rzcks = false;
    },
    /**入职定薪确认按钮 **/
    Addrzdx() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.status == 0) {
            updaterzdx(this.rzdxform).then(response => {
              this.rzdxReset()
              this.$modal.msgSuccess("操作成功");
              this.getList();
              this.statistics();
            });
          } else {
            this.rzdxform.eid = this.id;
            this.formSalary.effectiveDate = this.rzdxform.effectiveDate
            this.formSalary.empId = this.id
            rzdxAdd(this.rzdxform).then(response => {
              addEmpSalary(this.formSalary).then(res => {
                this.rzdxReset()
                this.emp.id = this.id;
                this.emp.isSalary = 1;
                updateEmployeefiles(this.emp).then(response => {
                  this.$modal.msgSuccess("操作成功");
                  this.getList();
                  this.statistics();
                  this.formSalary = {
                    comId: 1,
                    cause: "入职定薪",
                    empId: undefined,
                    status: '0',
                    salaryItems: [],
                    effectiveDate: undefined,
                    remark: ''
                  }
                  this.rzdxform = {};
                });
              });
            })

          }


          this.rzdxform = {};

        }

      });
    },
    /**合同部署查看按钮 **/
    hetById() {
      var id = this.id
      hetById(id).then(response => {
        this.hetck = true;
        this.hetckform = response.data;
      });
    },
    /** 查询部门下拉树结构 */
    getDeptTree() {
      deptTreeSelect().then(response => {

        this.deptOptions = response.data;
      });
    },
    /** 查询所在城市下拉树结构 */
    /* getaddressDeptTree() {
       deptaddressTreeSelect().then(response => {

         this.addressDept = response.data;
       });
     },*/
    /** 查询职位下拉树结构 */
    getPostTree() {
      postTreeSelect().then(response => {
        this.postOptions = response.data[0].children;
      });
    },
    parentIdChangeEmp(){
      this.$nextTick(() => {
        this.$refs.empDraForm.validateField('deptName')
      })
    },
    parentIdChange() {
      this.$nextTick(() => {
        this.$refs.form.validateField('deptName')
      })
    },
    /**参保按钮 **/
    handleDens() {
      this.cd = true;
      this.zs = true;
      this.selectedAddressOptions = null;
      var id = this.id
      getEmployeefiles(id).then(response => {
        this.cbform.empId = response.data.id;
        this.cbopen = true;
      });
    },
    //省市区
    handleChanges(value) {
      //我们选择地址后，selectedAddressOptions 会保存对应的区域码，
      //例如北京的区域码为'110000'
      //我们要取出区域码对应的汉字，就需要用CodeToText(区域码)进行输出
      var schemeCity = ''
      this.selectedAddressOptions.map(item => schemeCity += CodeToText[item] + '/')
      this.cbform.schemeCity = schemeCity;//更新表单的数据，以便保存更新
      /* this.addform.city = schemeCity;//更新表单的数据，以便保存更新*/
    },
    //省市区
    handleChangess(value) {

      var schemeCity = ''
      this.city.map(item => schemeCity += CodeToText[item] + '/')
      this.addform.schemeCity = schemeCity;//更新表单的数据，以便保存更新
    },
    fan(id) {
      this.sid = id
      this.zs = true;
      this.zx = true;
      getScheme(id).then(response => {
        this.backups = response.data;
        this.form1 = response.data;


        var addressStr = new Array(); //定义一数组
        addressStr = (this.form1.schemeCity).split("/"); //字符分割
        this.selectedAddressOptions = TextToCode[addressStr[0]][addressStr[1]][addressStr[2]].code;


      });


    },
    /** 提交按钮 */
    submit() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          var sid = this.id
          getScheme(sid).then(response => {
            console.log(response)
            if (this.radio == 2) {
              this.orm.id = this.id
              this.orm.sid = this.sid
              this.orm.insuredTime = this.form1.insuredTime
              this.orm.socialSecuritySalary = 1
              this.orm.sbNumber = this.cbform.sbNumber
              this.orm.gjNumber = this.cbform.gjNumber
              updateEmployeefiles(this.orm).then(response => {
                this.$modal.msgSuccess("操作成功");
                this.dialogVisible = false;
                this.orm = {}
                this.form1 = {}
                this.getDeptTree();
                this.getPostTree();
                this.getList();
                this.statistics();
                this.rzsx = false;
                this.cbopen = false
              });

            } else if (this.radio == 1) {
              this.addmodel = true;

            }


          });
          this.rzsx = false;
          this.getList();
        }
      })


    },
    /** 新增方案操作 */
    addmodels() {
      this.form1.schemeName = this.schemeName
      this.form1.sbNumber = this.form.sbNumber
      this.form1.gjNumber = this.form.gjNumber
      this.form1.id = this.id
      add(this.form1).then(response => {
        this.$modal.msgSuccess("新增成功");
        this.addmodel = false;
        this.cbopen = false;
        this.getDeptTree();
        this.getPostTree();
        this.getList();
        this.statistics();
      });
    },
    blurs() {


      //养老个人金额

      this.form1.grYlMoney = this.mul(this.form1.grYlBase, this.form1.grYlProportion).toFixed(2)
      //养老企业金额

      this.form1.companyYlMoney = this.mul(this.form1.companyYlBase, this.form1.companyYlProportion).toFixed(2)
      //养老小计

      this.form1.ylInsuranceMoney = this.sum(this.form1.grYlMoney, this.form1.companyYlMoney).toFixed(2)

      //工商个人金额
      this.form1.grGsMoney = this.mul(this.form1.grGsBase, this.form1.grGsProportion).toFixed(2)
      //工商企业金额
      this.form1.companyGsMoney = this.mul(this.form1.companyGsBase, this.form1.companyGsProportion).toFixed(2)
      //工商小计

      this.form1.gsInsuranceMoney = this.sum(this.form1.grGsMoney, this.form1.companyGsMoney).toFixed(2)

      //失业个人金额

      this.form1.grSyMoney = this.mul(this.form1.grSyBase, this.form1.grSyProportion).toFixed(2)
      //失业企业金额

      this.form1.companySyMoney = this.mul(this.form1.companySyBase, this.form1.companySyProportion).toFixed(2)

      //失业小计

      this.form1.syInsuranceMoney = this.sum(this.form1.grSyMoney, this.form1.companySyMoney).toFixed(2)

      //生育个人金额

      this.form1.grBirthMoney = this.mul(this.form1.grBirthBase, this.form1.grBirthProportion).toFixed(2)
      //生育企业金额

      this.form1.companyBirthMoney = this.mul(this.form1.companyBirthBase, this.form1.companyBirthProportion).toFixed(2)
      //生育小计

      this.form1.birthInsuranceMoney = this.sum(this.form1.grBirthMoney, this.form1.companyBirthMoney).toFixed(2)

      //医疗个人金额

      this.form1.grCareMoney = this.mul(this.form1.grCareBase, this.form1.grCareProportion).toFixed(2)
      //医疗企业金额

      this.form1.companyCareMoney = this.mul(this.form1.companyCareBase, this.form1.companyCareProportion).toFixed(2)
      //医疗小计
      /*this.form1.careInsuranceMoney = (Number(this.form1.grCareMoney + this.form1.companyCareMoney).toFixed(2))*/
      this.form1.careInsuranceMoney = this.sum(this.form1.grCareMoney, this.form1.companyCareMoney).toFixed(2)

      //社保个人缴纳
      /*this.form1.grInsuranceMoney = (Number(this.form1.grYlMoney + this.form1.grGsMoney + this.form1.grSyMoney + this.form1.grBirthMoney + this.form1.grCareMoney).toFixed(2))*/
      this.form1.grInsuranceMoney = this.sum(this.sum(this.sum(this.form1.grYlMoney, this.form1.grGsMoney), this.sum(this.form1.grSyMoney, this.form1.grBirthMoney)), this.form1.grCareMoney).toFixed(2)

      //社保公司缴纳
      /*this.form1.companyInsuranceMoney = (Number(this.form1.companyYlMoney + this.form1.companyGsMoney + this.form1.companySyMoney + this.form1.companyBirthMoney + this.form1.companyCareMoney).toFixed(2))*/
      this.form1.companyInsuranceMoney = this.sum(this.sum(this.sum(this.form1.companyYlMoney, this.form1.companyGsMoney), this.sum(this.form1.companySyMoney, this.form1.companyBirthMoney)), this.form1.companyCareMoney).toFixed(2)

      //社保合计
      /*this.form1.insuranceMoney = (Number(this.form1.grInsuranceMoney + this.form1.companyInsuranceMoney).toFixed(2))*/
      this.form1.insuranceMoney = this.sum(this.form1.grInsuranceMoney, this.form1.companyInsuranceMoney).toFixed(2)

      //公积金个人金额
      /*this.form1.grFundMoney = (Number(this.form1.grFundBase * this.form1.grFundProportion).toFixed(2))*/
      this.form1.grFundMoney = this.mul(this.form1.grFundBase, this.form1.grFundProportion).toFixed(2)

      //公积金公司金额
      /*this.form1.companyFundMoney = (Number(this.form1.companyFundBase * this.form1.companyFundProportion).toFixed(2))*/
      this.form1.companyFundMoney = this.mul(this.form1.companyFundBase, this.form1.companyFundProportion).toFixed(2)

      //公积金小计
      /*this.form1.fundSubtotal = (Number(this.form1.grFundMoney + this.form1.companyFundMoney).toFixed(2))*/
      this.form1.fundSubtotal = this.sum(this.form1.grFundMoney, this.form1.companyFundMoney).toFixed(2)

      //公积金个人缴纳
      this.form1.grFundPayment = this.form1.grFundMoney

      //公积金公司缴纳
      this.form1.companyFundPayment = this.form1.companyFundMoney

      //公积金合计
      /*this.form1.fundTotal = (Number(this.form1.grFundPayment + this.form1.companyFundPayment).toFixed(2))*/
      this.form1.fundTotal = this.sum(this.form1.grFundPayment, this.form1.companyFundPayment).toFixed(2)

    },
    /**
     ** 加法函数，用来得到精确的加法结果
     ** 说明：javascript 的加法结果会有误差，在两个浮点数相加的时候会比较明显。这个函数返回较为精确的加法结果。
     ** 调用：sum(arg1,arg2)
     ** 返回值：arg1 加上 arg2 的精确结果
     **/
    sum(arg1, arg2) {

      let r1, r2
      try {
        r1 = arg1.toString().split('.')[1].length
      } catch (e) {
        r1 = 0
      }
      try {
        r2 = arg2.toString().split('.')[1].length
      } catch (e) {
        r2 = 0
      }
      const c = Math.abs(r1 - r2)
      const m = Math.pow(10, Math.max(r1, r2))
      if (c > 0) {
        const cm = Math.pow(10, c)
        if (r1 > r2) {
          arg1 = Number(arg1.toString().replace('.', ''))
          arg2 = Number(arg2.toString().replace('.', '')) * cm
        } else {
          arg1 = Number(arg1.toString().replace('.', '')) * cm
          arg2 = Number(arg2.toString().replace('.', ''))
        }
      } else {
        arg1 = Number(arg1.toString().replace('.', ''))
        arg2 = Number(arg2.toString().replace('.', ''))
      }
      return (arg1 + arg2) / m
    },
    /**
     ** 减法函数，用来得到精确的减法结果
     ** 说明：javascript 的减法结果会有误差，在两个浮点 g2)会比较明显。这个函数返回较为精确的减法结果。
     ** 调用：sub(arg1,arg2)
     ** 返回值：arg1 加上 arg2 的精确结果
     **/
    sub(arg1, arg2) {

      let r1, r2
      try {
        r1 = arg1.toString().split('.')[1].length
      } catch (e) {
        r1 = 0
      }
      try {
        r2 = arg2.toString().split('.')[1].length
      } catch (e) {
        r2 = 0
      }
      const c = Math.abs(r1 - r2)
      const m = Math.pow(10, Math.max(r1, r2))
      if (c > 0) {
        const cm = Math.pow(10, c)
        if (r1 > r2) {
          arg1 = Number(arg1.toString().replace('.', ''))
          arg2 = Number(arg2.toString().replace('.', '')) * cm
        } else {
          arg1 = Number(arg1.toString().replace('.', '')) * cm
          arg2 = Number(arg2.toString().replace('.', ''))
        }
      } else {
        arg1 = Number(arg1.toString().replace('.', ''))
        arg2 = Number(arg2.toString().replace('.', ''))
      }
      return (arg1 - arg2) / m
    },
    /**
     ** 乘法函数，用来得到精确的乘法结果
     ** 说明：javascript 的乘法结果会有误差，在两个浮点数相乘的时候会比较明显。这个函数返回较为精确的乘法结果。
     ** 调用：mul(arg1,arg2)
     ** 返回值：arg1 乘以 arg2 的精确结果
     **/
    mul(arg1, arg2) {

      let m = 0
      const s1 = arg1.toString()
      const s2 = arg2.toString()
      try {
        m += s1.split('.')[1].length
      } catch (e) {

      }
      try {
        m += s2.split('.')[1].length
      } catch (e) {
      }
      return ((Number(s1.replace('.', '')) * Number(s2.replace('.', ''))) /
        Math.pow(10, m)
      )
    },
    /**
     ** 除法函数，用来得到精确的除法结果
     ** 说明：javascript 的除法结果会有误差，在两个浮点数相除的时候会比较明显。这个函数返回较为精确的除法结果。
     ** 调用：div(arg1,arg2)
     ** 返回值：arg1 除以 arg2 的精确结果
     **/
    div(arg1, arg2) {
      let t1 = 0,
        t2 = 0
      try {
        t1 = arg1.toString().split('.')[1].length
      } catch (e) {
      }
      try {
        t2 = arg2.toString().split('.')[1].length
      } catch (e) {
      }
      const r1 = Number(arg1.toString().replace('.', ''))
      const r2 = Number(arg2.toString().replace('.', ''))
      return (r1 / r2) * Math.pow(10, t2 - t1)
    },
    /**编辑按钮 **/
    radio1() {
      this.zs = false
      this.zx = false
    },
    radio2() {
      this.zs = true
      this.zx = true
      var id = this.sid;

      if (id == null) {
        this.form1 = {
          grYlBase: 0.00,
          grGsBase: 0.00,
          grSyBase: 0.00,
          grBirthBase: 0.00,
          grCareBase: 0.00,
          grYlProportion: 0.00,
          grGsProportion: 0.00,
          grSyProportion: 0.00,
          grBirthProportion: 0.00,
          grCareProportion: 0.00,
          grYlMoney: 0.00,
          grGsMoney: 0.00,
          grSyMoney: 0.00,
          grBirthMoney: 0.00,
          grCareMoney: 0.00,
          companyYlBase: 0.00,
          companyGsBase: 0.00,
          companySyBase: 0.00,
          companyBirthBase: 0.00,
          companyCareBase: 0.00,
          companyYlProportion: 0.00,
          companyGsProportion: 0.00,
          companySyProportion: 0.00,
          companyBirthProportion: 0.00,
          companyCareProportion: 0.00,
          companyYlMoney: 0.00,
          companyGsMoney: 0.00,
          companySyMoney: 0.00,
          companyBirthMoney: 0.00,
          companyCareMoney: 0.00,
          grInsuranceMoney: 0.00,
          companyInsuranceMoney: 0.00,
          insuranceMoney: 0.00,
          ylInsuranceMoney: 0.00,
          gsInsuranceMoney: 0.00,
          syInsuranceMoney: 0.00,
          birthInsuranceMoney: 0.00,
          careInsuranceMoney: 0.00,
          grFundBase: 0.00,
          grFundProportion: 0.00,
          grFundMoney: 0.00,
          companyFundBase: 0.00,
          companyFundProportion: 0.00,
          companyFundMoney: 0.00,
          fundSubtotal: 0.00,
          fundTotal: 0.00,
          grFundPayment: 0.00,
          companyFundPayment: 0.00,
        };
      } else {
        getScheme(this.sid).then(response => {
          this.backups = response.data;
          this.form1 = response.data;


          var addressStr = new Array(); //定义一数组
          addressStr = (this.form1.schemeCity).split("/"); //字符分割
          this.selectedAddressOptions = TextToCode[addressStr[0]][addressStr[1]][addressStr[2]].code;


        });
      }


    },
    nojj() {
      if (this.radio === '1') {
        if (this.checkedes) {
          this.zx = true
          this.form1.grFundBase = 0;
          this.form1.grFundProportion = 0;
          this.form1.grFundMoney = 0;
          this.form1.companyFundBase = 0;
          this.form1.companyFundProportion = 0;
          this.form1.companyFundMoney = 0;
          this.form1.fundSubtota = 0;
          this.form1.grFundPayment = 0;
          this.form1.companyFundPayment = 0;
          this.form1.fundTotal = 0;
          this.form1.fundSubtotal = 0;
        }
      } else if (this.radio === '2') {
        this.zx = false
      }
    },
    nojjs() {
      if (this.checkedess) {
        this.addform.grFundBase = 0;
        this.addform.grFundProportion = 0;
        this.addform.grFundMoney = 0;
        this.addform.companyFundBase = 0;
        this.addform.companyFundProportion = 0;
        this.addform.companyFundMoney = 0;
        this.addform.fundSubtota = 0;
        this.addform.grFundPayment = 0;
        this.addform.companyFundPayment = 0;
        this.addform.fundTotal = 0;
        this.addform.fundSubtotal = 0;
        this.isjn = true;
      } else {
        this.isjn = false;
      }
    },
    /** 新增按钮操作 */
    handleAdds() {
      this.addform = {
        grYlBase: 0,
        grGsBase: 0,
        grSyBase: 0,
        grBirthBase: 0,
        grCareBase: 0,
        grYlProportion: 0,
        grGsProportion: 0,
        grSyProportion: 0,
        grBirthProportion: 0,
        grCareProportion: 0,
        grYlMoney: 0,
        grGsMoney: 0,
        grSyMoney: 0,
        grBirthMoney: 0,
        grCareMoney: 0,
        companyYlBase: 0,
        companyGsBase: 0,
        companySyBase: 0,
        companyBirthBase: 0,
        companyCareBase: 0,
        companyYlProportion: 0,
        companyGsProportion: 0,
        companySyProportion: 0,
        companyBirthProportion: 0,
        companyCareProportion: 0,
        companyYlMoney: 0,
        companyGsMoney: 0,
        companySyMoney: 0,
        companyBirthMoney: 0,
        companyCareMoney: 0,
        grInsuranceMoney: 0,
        companyInsuranceMoney: 0,
        insuranceMoney: 0,
        ylInsuranceMoney: 0,
        gsInsuranceMoney: 0,
        syInsuranceMoney: 0,
        birthInsuranceMoney: 0,
        careInsuranceMoney: 0,
        grFundBase: 0,
        grFundProportion: 0,
        grFundMoney: 0,
        companyFundBase: 0,
        companyFundProportion: 0,
        companyFundMoney: 0,
        fundSubtotal: 0,
        fundTotal: 0,
        grFundPayment: 0,
        companyFundPayment: 0,
      };
      this.selectedAddressOptions = null;

      this.addopen = true;
      this.title = "新增参保方案";
    },
    /** 提交按钮 */
    submitForms() {
      this.$refs["form"].validate(valid => {
        if (valid) {


          addScheme(this.addform).then(response => {
            this.$modal.msgSuccess("新增成功");
            this.isjn = false;
            this.addopen = false;
            this.getList();
          });
        }

      });
    },

    blures() {


      //养老个人金额

      this.addform.grYlMoney = this.mul(this.addform.grYlBase, this.addform.grYlProportion).toFixed(2)
      //养老企业金额

      this.addform.companyYlMoney = this.mul(this.addform.companyYlBase, this.addform.companyYlProportion).toFixed(2)
      //养老小计

      this.addform.ylInsuranceMoney = this.sum(this.addform.grYlMoney, this.addform.companyYlMoney).toFixed(2)

      //工商个人金额
      this.addform.grGsMoney = this.mul(this.addform.grGsBase, this.addform.grGsProportion).toFixed(2)
      //工商企业金额
      this.addform.companyGsMoney = this.mul(this.addform.companyGsBase, this.addform.companyGsProportion).toFixed(2)
      //工商小计

      this.addform.gsInsuranceMoney = this.sum(this.addform.grGsMoney, this.addform.companyGsMoney).toFixed(2)

      //失业个人金额

      this.addform.grSyMoney = this.mul(this.addform.grSyBase, this.addform.grSyProportion).toFixed(2)
      //失业企业金额

      this.addform.companySyMoney = this.mul(this.addform.companySyBase, this.addform.companySyProportion).toFixed(2)

      //失业小计

      this.addform.syInsuranceMoney = this.sum(this.addform.grSyMoney, this.addform.companySyMoney).toFixed(2)

      //生育个人金额

      this.addform.grBirthMoney = this.mul(this.addform.grBirthBase, this.addform.grBirthProportion).toFixed(2)
      //生育企业金额

      this.addform.companyBirthMoney = this.mul(this.addform.companyBirthBase, this.addform.companyBirthProportion).toFixed(2)
      //生育小计

      this.addform.birthInsuranceMoney = this.sum(this.addform.grBirthMoney, this.addform.companyBirthMoney).toFixed(2)

      //医疗个人金额

      this.addform.grCareMoney = this.mul(this.addform.grCareBase, this.addform.grCareProportion).toFixed(2)
      //医疗企业金额

      this.addform.companyCareMoney = this.mul(this.addform.companyCareBase, this.addform.companyCareProportion).toFixed(2)
      //医疗小计
      /*this.form.careInsuranceMoney = (Number(this.form.grCareMoney + this.form.companyCareMoney).toFixed(2))*/
      this.addform.careInsuranceMoney = this.sum(this.addform.grCareMoney, this.addform.companyCareMoney).toFixed(2)

      //社保个人缴纳
      /*this.form.grInsuranceMoney = (Number(this.form.grYlMoney + this.form.grGsMoney + this.form.grSyMoney + this.form.grBirthMoney + this.form.grCareMoney).toFixed(2))*/
      this.addform.grInsuranceMoney = this.sum(this.sum(this.sum(this.addform.grYlMoney, this.addform.grGsMoney), this.sum(this.addform.grSyMoney, this.addform.grBirthMoney)), this.addform.grCareMoney).toFixed(2)

      //社保公司缴纳
      /*this.form.companyInsuranceMoney = (Number(this.form.companyYlMoney + this.form.companyGsMoney + this.form.companySyMoney + this.form.companyBirthMoney + this.form.companyCareMoney).toFixed(2))*/
      this.addform.companyInsuranceMoney = this.sum(this.sum(this.sum(this.addform.companyYlMoney, this.addform.companyGsMoney), this.sum(this.addform.companySyMoney, this.addform.companyBirthMoney)), this.addform.companyCareMoney).toFixed(2)

      //社保合计
      /*this.form.insuranceMoney = (Number(this.form.grInsuranceMoney + this.form.companyInsuranceMoney).toFixed(2))*/
      this.addform.insuranceMoney = this.sum(this.addform.grInsuranceMoney, this.addform.companyInsuranceMoney).toFixed(2)

      //公积金个人金额
      /*this.form.grFundMoney = (Number(this.form.grFundBase * this.form.grFundProportion).toFixed(2))*/
      this.addform.grFundMoney = this.mul(this.addform.grFundBase, this.addform.grFundProportion).toFixed(2)

      //公积金公司金额
      /*this.form.companyFundMoney = (Number(this.form.companyFundBase * this.form.companyFundProportion).toFixed(2))*/
      this.addform.companyFundMoney = this.mul(this.addform.companyFundBase, this.addform.companyFundProportion).toFixed(2)

      //公积金小计
      /*this.form.fundSubtotal = (Number(this.form.grFundMoney + this.form.companyFundMoney).toFixed(2))*/
      this.addform.fundSubtotal = this.sum(this.addform.grFundMoney, this.addform.companyFundMoney).toFixed(2)

      //公积金个人缴纳
      this.addform.grFundPayment = this.addform.grFundMoney

      //公积金公司缴纳
      this.addform.companyFundPayment = this.addform.companyFundMoney

      //公积金合计
      /*this.form.fundTotal = (Number(this.form.grFundPayment + this.form.companyFundPayment).toFixed(2))*/
      this.addform.fundTotal = this.sum(this.addform.grFundPayment, this.addform.companyFundPayment).toFixed(2)

    },
    findById() {
      var id = this.id
      getEmployeefiles(id).then(response => {

        this.form2 = response.data;
        var addressStr = new Array(); //定义一数组
        addressStr = (this.form2.schemeCity).split("/"); //字符分割
        this.selectedAddressOptions = TextToCode[addressStr[0]][addressStr[1]][addressStr[2]].code;

        this.sbopen = true;
        this.title = "详情";
      });
    },

  }
};
</script>
